home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Tools / Development / vbcc / targets / ppc-morphos / include / assert.h next >
Encoding:
C/C++ Source or Header  |  2002-10-27  |  320 b   |  16 lines

  1. #pragma begin_header
  2. #ifndef __ASSERT_H
  3. #define __ASSERT_H 1
  4. #endif
  5.  
  6. #undef assert
  7.  
  8. extern int __aprintf(const char *,...);
  9.  
  10. #ifndef NDEBUG
  11. #define assert(exp) ((void)((exp)?0:(__aprintf("Assertion failed: file %s, line %d\n",__FILE__,__LINE__),abort(),0)))
  12. #else
  13. #define assert(exp) ((void)0)
  14. #endif
  15. #pragma end_header
  16.